Partial Class Usercontrols_Admin_Site
    Inherits UserControlBase

#Region " Page Events "

    Protected Sub Page_Init(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Init
        Me.MessageLabel = Me.uxMessagesLabel
    End Sub

    Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
        SetPageTitle("Site Management")

        If Me.Page.IsPostBack = False Then
        End If

        Me.uxAdminPanel.Visible = ShowControls(SecurityMask.Admin, True)

    End Sub

#End Region

#Region " Form Controls Events "

    Protected Sub uxSubmitButton_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles uxSubmitButton.Click
        uxSiteSettings.SaveSettings()
        uxFeedSettings.SaveSettings()
        uxMainPageSettings.SaveSettings()
        uxBlogSettings.SaveSettings()
        uxEventSettings.SaveSettings()
        uxGallerySettings.SaveSettings()
        uxOptionsSettings.SaveSettings()
        uxPollSettings.SaveSettings()
    End Sub

    Protected Sub uxResetButton_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles uxResetButton.Click
        uxSiteSettings.LoadSettings()
        uxFeedSettings.LoadSettings()
        uxMainPageSettings.LoadSettings()
        uxBlogSettings.LoadSettings()
        uxEventSettings.LoadSettings()
        uxGallerySettings.LoadSettings()
        uxOptionsSettings.LoadSettings()
        uxPollSettings.LoadSettings()
    End Sub

#End Region

End Class
